/*
 * 文 件 名 : Answer.java
 * 版    权 : China Machi.Co.,Ltd.Copyright 2009-2011.All rights reserved
 * 描    述 : <描述>
 * 修 改 人 : lixg
 * 修改时间 : 2012-8-23
 * 跟踪单号 : <跟踪单号>
 * 修改单号 : <修改单号>
 * 修改内容 : <修改内容>
 */
package com.fire8.dolphin.model;

/**
 * 回答实体
 * 当回答的问题是自己提的时候，回答类型为补充[0]
 * 只有注册用户才能回答别人的问题
 * 当网络不可用时，回答将先存于本地，网络可用时系统自动提交回答
 *
 * @author  lixg
 * @version [版本号,2012-8-23]
 * @see     [相关类/方法]
 * @since   [产品/模块]
 */
public class Answer
{
    private String aId;//回答的本地ID
    private String remoteId;//远程服务器上的ID
    private String qId;//关联本地问题的ID
    private String qRemoteId;//关联本地问题的远程ID[暂留，不用]
    private String aType;//回答类型，检查提问者是不是自己，如果是，则类型为问题补充0
    
    private String aContext;//回答内容
    private String updateDate;//回答时间，将时间转换成字符串，格式为：yyyy-MM-dd hh:mm:ss
    private String userId;//回答者ID
    private String userName;//回答者名称
    private String userHead;//回答者头像
    
    private String voice;//语音回复
    private long voiceLong;
    
    
    //表名
    public static final String TABLE_NAME="t_answer";
    //列名
    public static final String A_ID="a_id";
    public static final String REMOTE_ID="remote_id";
    public static final String Q_ID="q_id";
    public static final String Q_REMOTE_ID="q_remote_id";
    public static final String ANSWER_TYPE="answer_type";
    public static final String ANSWER_CONTEXT="answer_context";
    public static final String UPDATE_DATE="update_date";
    public static final String USER_ID="user_id";
    public static final String USER_NAME="user_name";
    public static final String USER_HEAD="user_head";
    public static final String VOICE="voice";
    
    public static final String ANSWER_TYPE_SELF="0";
    public static final String ANSWER_TYPE_UNSELF="1";
    public String getaId()
    {
        return aId;
    }
    public void setaId(String aId)
    {
        this.aId = aId;
    }
    public String getRemoteId()
    {
        return remoteId;
    }
    public void setRemoteId(String remoteId)
    {
        this.remoteId = remoteId;
    }
    public String getqId()
    {
        return qId;
    }
    public void setqId(String qId)
    {
        this.qId = qId;
    }
    public String getqRemoteId()
    {
        return qRemoteId;
    }
    public void setqRemoteId(String qRemoteId)
    {
        this.qRemoteId = qRemoteId;
    }
    public String getaType()
    {
        return aType;
    }
    public void setaType(String aType)
    {
        this.aType = aType;
    }
    
    public String getaContext()
    {
        return aContext;
    }
    public void setaContext(String aContext)
    {
        this.aContext = aContext;
    }
    public String getUpdateDate()
    {
        return updateDate;
    }
    public void setUpdateDate(String updateDate)
    {
        this.updateDate = updateDate;
    }
    public String getUserId()
    {
        return userId;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }
    public String getUserName()
    {
        return userName;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    public String getUserHead()
    {
        return userHead;
    }
    public void setUserHead(String userHead)
    {
        this.userHead = userHead;
    }
    public String getVoice()
    {
        return voice;
    }
    public void setVoice(String voice)
    {
        this.voice = voice;
    }
    public long getVoiceLong()
    {
        return voiceLong;
    }
    public void setVoiceLong(long voiceLong)
    {
        this.voiceLong = voiceLong;
    }
    
    
    
    
}
